<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="${ctx}/styles/bootstrap.min.css" rel="stylesheet">
	<link href="${ctx}/styles/bootstrap-theme.min.css" rel="stylesheet">
	<link href="${ctx}/css/admin.css" rel="stylesheet">
    <script src="${ctx}/scripts/jquery-1.11.0.min.js"></script>
    <script src="${ctx}/scripts/bootstrap.min.js"></script>
    <title>麦丰网<sitemesh:write property='title'/></title>
    <sitemesh:write property='head'/>
    <style type="text/css">
    .nav>li>a {position: relative;display: block;padding: 5px 15px;}
    </style>
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="javascript:;">麦丰网管理后台</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="${ctx}/admin/logout">退出</a></li>
          </ul>
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-1 sidebar">
          <ul class="nav nav-sidebar">
          	<li id="nav_brand"><a href="${ctx}/admin/brand/list">品牌</a></li>
           	<li id="nav_category"><a href="${ctx}/admin/category/list">种类</a></li>
            <li id="nav_product"><a href="${ctx}/admin/product/list">商品</a></li>
            <li id="nav_user"><a href="${ctx}/admin/user/list">用户</a></li>
            <li id="nav_order"><a href="${ctx}/admin/order/list">订单</a></li>
            <li id="nav_image"><a href="${ctx}/admin/image/list">图片</a></li>
            <li id="nav_data"><a href="${ctx}/admin/data/operation">管理</a></li>
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-11 col-md-offset-1 main">
			<sitemesh:write property='body'/>
        </div>
      </div>
    </div>
  </body>
</html>
